package cn.lstf666.g03configuration.web;


import cn.lstf666.g03configuration.domain.School;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class indexController {

    @Autowired
    private School school;

    @RequestMapping("/school")
    public @ResponseBody String say(){
        return "hi"+school.getName()+","+school.getWebsite();
    }
}
